package cn.wolfcode.service.impl;

import cn.wolfcode.domain.EmployeeRole;
import cn.wolfcode.mapper.EmployeeRoleMapper;
import cn.wolfcode.service.IEmployeeRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmployeeRoleServiceImpl implements IEmployeeRoleService {

    @Autowired
    private EmployeeRoleMapper mapper;

    @Override
    public int insert(EmployeeRole record) {
        return mapper.insert(record);
    }

    @Override
    public List<EmployeeRole> selectAll() {
        return mapper.selectAll();
    }

    @Override
    public void delete(Long id) {
        mapper.delete(id);
    }

    @Override
    public List<EmployeeRole> selectByEmployee(Long id) {
        return mapper.selectByEmployee(id);
    }
}
